package com.chuangke.admin.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chuangke.admin.dto.UserDeptRequest;
import com.chuangke.admin.entity.SysDept;
import com.chuangke.admin.entity.SysUserDataDept;

public interface SysUserDataDeptService extends IService<SysUserDataDept>{

	void save(UserDeptRequest userDeptRequest) ;
	
	void delete(String userId) ;
	
	void removeByIds(List<String> ids) ;
	
	Map<String,List<SysUserDataDept>> findAll() ;
	
	List<SysUserDataDept> find(String userId) ;
	
	/**
	 * 获取用户的机构权限，包含下级机构
	 * @param userId
	 * @return
	 */
	List<SysDept> findUserDeptWithChildren(String userId) ;

	void saveBatchDataRule(List<SysUserDataDept> list);

	void removeDataRule(LambdaQueryWrapper<SysUserDataDept> lambdaQueryWrapper);
}
